//
//  HNCommentMouldCell.m
//  优学荟管理系统
//
//  Created by 星道 on 2017/10/6.
//  Copyright © 2017年 星道三好. All rights reserved.
//

#import "HNCommentMouldCell.h"

@implementation HNCommentMouldCell
{
    IBOutlet UIImageView *_Img;
    IBOutlet UILabel *_Title;
    IBOutlet UIButton *_UpLoadBtn;
    IBOutlet UIButton *_DeleteBtn;
}


- (void)setModel:(HNCommentMouldModel *)Model {

    _Model = Model;

    _Title.text = _Model.templateName;
    _UpLoadBtn.hidden = _DeleteBtn.hidden = [_Model.oid isEqualToNumber:@0] ? YES:NO;
}






/** 修改 */
- (IBAction)UpLoad:(UIButton *)sender {

    [self.Delegate Cell:self UploadWithModel:self.Model];
}

/** 删除 */
- (IBAction)Delete:(UIButton *)sender {

    [self.Delegate Cell:self DeleteWithModel:self.Model];
}

/** 查看 */
- (IBAction)LookUp:(UIButton *)sender {

    [self.Delegate Cell:self LookUpWithModel:self.Model];
}

@end
